package cn.edu.scau.cmil.linwei.comprehensive.Script;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

public class StudentData {
    private  SimpleStringProperty StudentID;
    private  SimpleStringProperty StudentName;
    private  SimpleIntegerProperty Attend;
    private  SimpleIntegerProperty Exam;
    private  SimpleIntegerProperty Work;
    private  SimpleIntegerProperty FinalExam;
    private  SimpleIntegerProperty TotalScore;



    private  SimpleStringProperty CourseName;

    public StudentData(){

    }

    public StudentData(String StudentID, String StudentName, int Attend, int Exam, int Work, int FinalExam, int TotalScore) {
        this.StudentID = new SimpleStringProperty(StudentID);
        this.StudentName = new SimpleStringProperty(StudentName);
        this.Attend = new SimpleIntegerProperty(Attend);
        this.Exam = new SimpleIntegerProperty(Exam);
        this.Work = new SimpleIntegerProperty(Work);
        this.FinalExam = new SimpleIntegerProperty(FinalExam);
        this.TotalScore = new SimpleIntegerProperty(TotalScore);
    }

    public StudentData(String CourseName, int Attend, int Exam, int Work, int FinalExam, int TotalScore) {
        this.CourseName = new SimpleStringProperty(CourseName);
        this.Attend = new SimpleIntegerProperty(Attend);
        this.Exam = new SimpleIntegerProperty(Exam);
        this.Work = new SimpleIntegerProperty(Work);
        this.FinalExam = new SimpleIntegerProperty(FinalExam);
        this.TotalScore = new SimpleIntegerProperty(TotalScore);
    }


    //每个数据必须要有get和set方法，否则表中数据无法显示出来
    public String getCourseName() {
        return CourseName.get();
    }

    public SimpleStringProperty courseNameProperty() {
        return CourseName;
    }

    public void setCourseName(String courseName) {
        this.CourseName.set(courseName);
    }

    public String getStudentID() {
        return StudentID.get();
    }

    public SimpleStringProperty studentIDProperty() {
        return StudentID;
    }

    public void setStudentID(String studentID) {
        this.StudentID.set(studentID);
    }

    public String getStudentName() {
        return StudentName.get();
    }

    public SimpleStringProperty studentNameProperty() {
        return StudentName;
    }

    public void setStudentName(String studentName) {
        this.StudentName.set(studentName);
    }

    public int getAttend() {
        return Attend.get();
    }

    public SimpleIntegerProperty attendProperty() {
        return Attend;
    }

    public void setAttend(int attend) {
        this.Attend.set(attend);
    }

    public int getExam() {
        return Exam.get();
    }

    public SimpleIntegerProperty examProperty() {
        return Exam;
    }

    public void setExam(int exam) {
        this.Exam.set(exam);
    }

    public int getWork() {
        return Work.get();
    }

    public SimpleIntegerProperty workProperty() {
        return Work;
    }

    public void setWork(int work) {
        this.Work.set(work);
    }

    public int getFinalExam() {
        return FinalExam.get();
    }

    public SimpleIntegerProperty finalExamProperty() {
        return FinalExam;
    }

    public void setFinalExam(int finalExam) {
        this.FinalExam.set(finalExam);
    }

    public int getTotalScore() {
        return TotalScore.get();
    }

    public SimpleIntegerProperty totalScoreProperty() {
        return TotalScore;
    }

    public void setTotalScore(int totalScore) {
        this.TotalScore.set(totalScore);
    }
}